/**
 * Created by Administrator on 2017/4/4.
 */
import Vue from 'vue'
import { ToastPlugin } from 'vux'
import getdataservice from '@/common/httphelper'
import APIURL from '@/api/apiurl'
import personlogin from '@/vuex/actions/login/personlogin'
Vue.use(ToastPlugin)
const mutations = {
    startLoadingStatus: function(state) {
        state.isLoading = true
    },
    stopLoadingStatus: function(state) {
        state.isLoading = false
    },
    getGuid: function(state) {
        getdataservice(APIURL.AUTH_GETGUID).then(function(data) {
            state.guid = data.Data
        })
    },
    setToken: function(state, token) {
        state.token = token
    },
    changUiStatus: function(state, status) {
        state.uiStatus.TABBAR = status
        state.uiStatus.HEADER = { showBack: status }
    },
    setUserinfo:function(state,userinfo)
    {
      state.userinfo=userinfo
    }
}
export default mutations